package com.gb.demand.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_area")
@ApiModel(value="Area对象", description="")
public class Area extends Model<Area> implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "添加时间")
    @TableField("addTime")
    private Date addTime;

    @TableField("deleteStatus")
    private Boolean deleteStatus;

    @ApiModelProperty(value = "地区名称")
    private String areaName;

    @ApiModelProperty(value = "地区层级")
    private Integer level;

    @ApiModelProperty(value = "序号")
    private Integer sequence;

    @ApiModelProperty(value = "地区父类")
    private Long parentId;

    @ApiModelProperty(value = "是否常用地区")
    private Boolean common;
}
